package com.loriot.common.count_tested_devices_after_test_operations_2960;

/**
 * @Title: pointsThatIntersectWithCars_2848
 * @Package: com.loriot.common
 * @Description:
 * @Author: zzy boy
 * @Date: 2025/10/21 10:36
 * @Version: 0.0.1-alpha
 */

public class Main {
    class Solution {
        public int countTestedDevices(int[] batteryPercentages) {
            int rst = 0;
            for(int i=0;i<batteryPercentages.length;i++){
                int item = batteryPercentages[i];
                if(item-rst>0){
                    rst++;
                }
            }
            return rst;
        }
    }
}
